package com.atguigu.gulimall.product.dao;

import com.atguigu.gulimall.product.entity.CategoryBrandRelationEntity;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 品牌分类关联
 * 
 * @author zhangqi
 * @email 562895852@qq.com
 * @date 2021-10-08 15:31:19
 */
@Mapper
public interface CategoryBrandRelationDao extends BaseMapper<CategoryBrandRelationEntity> {

    //更新关联表的品牌名称 @Param 注解对应mapper.xml文件中的变量
    void updateByBrandId(@Param("brandId") Long brandId, @Param("name") String name);
}
